
$(function(){
     $.ajax({
            type:"post",
            url:"http://127.0.0.1:3007/my/obain/obain",
            success:function(data){
              console.log(data);
              var list=data.data
              if(list!=undefined && list.length>0){
                for(var i=0;i<list.length;i++){
                    $(".article").append(
                        '<div class="lll"id="'+list[i].Id+'">'+"<h4 style='font-size:20px;margin-left:10px;color:#a74040ad;'>"+list[i].title+"</h4>"+
                        "<p style='margin-left:10px;font-size:15px;letter-spacing:0.5px;color:#333333cf'>"+list[i].content+"</p>"+
                        "<hr style='border-bottom:1px solid #a2654dd6'>"+"</hr>"+"</div>"
                    )
                }
                $('.lll').click(function(){
                  const id=$(this).attr('id')
                  location.href='content.html?Id='+id
                  console.log('hdkvbdkjav')
                })
              }
            }
         })
         $(".write").click(function(){
          location.href='pinglun.html'
      })
         
})
